<?php

/*
 * periode/reload-new
 */
?>
<?php
$nextLabel	 = $this->nextLabel;
$nextMonday	 = $this->nextMonday;
?>
<table class="table table-striped list-table">
    <thead>
	<tr>
	    <td width='42%' style='text-align: center; font-weight: bold'>Libellé</td>
	    <td width='25%' style='text-align: center; font-weight: bold'>Début</td>
	    <td width='25%' style='text-align: center; font-weight: bold'>Fin</td>
	    <td width='8%'>&nbsp;</td>
	</tr>
    </thead>
    <tbody>
	<tr>
	    <td style='text-indent: 10px'>
		<a href='<?php echo $nextLabel ?>' id='libelle' data-type='text' onclick='return false;'><?php echo $nextLabel ?></a>
	    </td>
	    <td style='text-align: center;'>
		<a href='<?php echo $nextMonday->dateFr() ?>' id='debut' data-type='text' onclick='return false;'><?php echo $nextMonday->dateFr() ?></a>
	    </td>
	    <td style='text-align: center;'>
		<a href='#' id='fin' data-type='select'>0000-00-00</a>
	    </td>
	    <td style='text-align: center;'>
		<button id="data-validate" class='btn btn-success' style="display: none;" onclick="return addNew();">Ajouter</button>
	    </td>
	</tr>
    </tbody>
</table>
<form id="newPeriode" action="#" method="post" style="display: none;">
    <input type="hidden" name="libelle" value="<?php echo $nextLabel ?>">
    <input type="hidden" name="debut" value="<?php echo $nextMonday->date() ?>">
    <input type="hidden" id="data-fin" name="fin" value="<?php echo '0000-00-00' ?>">
</form>
<script type="text/javascript">
</script>